package com.designPattern.DecoratorMode;

/**
 * Created by Administrator on 2018/3/10.
 */

public class Shoe {

}

class SportShoe extends ClothingDecorator {

    public SportShoe(Human human) {
        super(human);
    }

    @Override
    public String wearCloth() {
        return super.wearCloth() + " 运动鞋";
    }

    @Override
    public int glamour() {
        return super.glamour() + 1;
    }
}

class LeatherShoe extends ClothingDecorator {

    public LeatherShoe(Human human) {
        super(human);
    }

    @Override
    public String wearCloth() {
        return super.wearCloth() + " 皮鞋";
    }

    @Override
    public int glamour() {
        return super.glamour() + 1;
    }
}